export default {
  columns: [
    {
      type: 'selection',
      width: 60,
      align: 'center'
    },
    {
      title: '事件类型',
      width: 100,
      align: 'center',
      key: 'eventType'
    },
    {
      title: '事件内容',
      key: 'eventContent'
    },
    {
      title: '事件等级',
      width: 100,
      align: 'center',
      key: 'eventLevel'
    },
    {
      title: '事件源',
      width: 150,
      align: 'center',
      key: 'eventSource'
    },
    {
      title: '事件发生时间',
      width: 150,
      align: 'center',
      key: 'eventRaiseDate'
    },
    {
      title: '状态',
      width: 80,
      align: 'center',
      key: 'eventState'
    },
    {
      title: '操作',
      key: 'action',
      width: 80,
      align: 'center',
      render: (h, params) => {
        return h('div', [
          h('Button', {
            props: {
              type: 'primary',
              size: 'small'
            },
            style: {
              marginRight: '5px'
            },
            on: {
              click: () => {
                this.show(params.index);
              }
            }
          }, '查看')
        ]);
      }
    }
  ],
  data: [
    {
      eventType: '设备告警',
      eventContent: '温度超过设定阈值[当前：50，阈值:30]',
      eventSource: 'KT0325-003',
      eventRaiseDate: '20170809 12:30:22',
      eventLevel: '一般',
      eventState: '已处理'
    }, {
      eventType: '设备告警',
      eventContent: '温度超过设定阈值[当前：90，阈值:30]',
      eventSource: 'KT0325-003',
      eventRaiseDate: '20170809 12:30:22',
      eventLevel: '紧急',
      eventState: '已处理'
    },
    {
      eventType: '设备告警',
      eventContent: '温度过高',
      eventSource: 'KT0325-002',
      eventRaiseDate: '20170809 12:30:42',
      eventLevel: '一般',
      eventState: '已处理'
    }
  ]
};
